"use strict";
import Cookies from 'js-cookie'
/**
 * @author zhaojiuyi
 * @date 2022/9/22-21:58
 * @version 1.0.0
 */
export default {
  setCookie(name,value){
    Cookies.set(name,value)
  },

  setCookieTime(name,value,time){
    Cookies.set(name,value,{expores:time})
  },
  getCookie(name){
    if (name) return Cookies.get(name)
    return Cookies.get()
  },
  removeCookie(name){
    Cookies.remove(name)
  }
}
